<%-- 
    Document   : Menuad
    Created on : Oct 25, 2011, 12:40:10 PM
    Author     : kijoo
--%>

<%@page import="MODEL.POJO.LoaiSanPhamPOJO"%>
<%@page import="MODEL.DAO.LoaiSanPhamDAO"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div class="menu">
    <div class="menudrop">
        <!--Menu loai danh muc CHA--> 
        <ul>
            <li><a href="Admin.jsp" title=""><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Trang Chủ</span></a>
                <ul>
                    <li><a href="AdminController?Action=ThemTinTuc" title=""><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Thêm Tin Tức</span></a></li>
                    
                    <li><a href="AdminController?Action=XemDanhSachTinTuc" title=""><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Quản lý tin tức</span></a></li>
                </ul>
            </li>
            <li><a href="AdminController?Action=ThemLoaiDanhMuc" title=""><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Thêm Loại Danh Mục</span></a></li>
            <li><a href="AdminController?Action=ThemDanhMuc" title="" ><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Thêm Danh Mục</span></a></li>
            <li><a href="AdminController?Action=ThemSanPham" title=""><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Thêm Sản Phẩm</span></a></li>
            <li><a href="#" title=""><span style="font-size:14px; color:#FFFFFF;  font-style:inherit">Danh Sách Sản Phẩm</span></a>
                <!--Menu dong san pham--> 
                        <ul><%
                            ArrayList<LoaiSanPhamPOJO> ds = LoaiSanPhamDAO.LayDanhSachLoaiSanPham();
                            for (int k = 0; k < ds.size(); k++) {
                            LoaiSanPhamPOJO sp = ds.get(k);
                            %>
                            <li ><a href="AdminController?Action=XemDanhSachSP&idloaisanpham=<%=sp.getIdloaisanpham()%>&tenloaisanpham=<%=sp.getTenloaisanpham() %>&Trang=1"/><%=sp.getTenloaisanpham()%></a></li>
                            <%
                            }%>
                        </ul>
            </li>
        </ul>
    </div>
</div>
   